//
//  ECUserModel.m
//  Edu_iOS2018
//
//  Created by yanyan on 2018/1/17.
//  Copyright © 2018年 yanyan. All rights reserved.
//

#import "ECUserModel.h"
#import "CYDataHelper.h"
@implementation ECUserModel
- (instancetype)initWithObjectInComment:(id)obj
{
    if (self = [super init]) {
        self.modelId = [CYDataHelper isNull:[obj valueForKey:@"id"]]?@"":[obj valueForKey:@"id"];
        self.nickName = [CYDataHelper isNull:[obj valueForKey:@"nickname"]]?@"":[obj valueForKey:@"nickname"];
        self.showName = self.nickName;
        self.avatarUrl = [obj valueForKey:@"avatar"];
    }
    return self;
}
@end
